package com.gxuwz.medical.domain.chronicdis;

import java.sql.SQLException;
import java.util.List;

import com.gxuwz.medical.domain.area.Area;
import com.gxuwz.medical.vo.PageBean;
import com.gxuwz.medical.dao.ChronicdisDao;;
public class Chronicdis {
	private String illcode;//疾病编码
	private String pycode;//拼音码
	private String illname;//疾病名称
	private String wbcode;//五笔编码
	private ChronicdisDao chronicdisdao= new ChronicdisDao();
	
	public void add() throws SQLException {
		chronicdisdao.add(this);
	}

	public void delete(String illcode) throws SQLException {
		chronicdisdao.delete(illcode);
	}

	public Chronicdis query() throws SQLException {
		return chronicdisdao.query(illcode);
	}

	public PageBean queryAll(int page,int size) throws SQLException {
		return chronicdisdao.queryAll(page,size);
	}
	public List<Chronicdis> queryAll() throws SQLException {
		return chronicdisdao.queryAll();
	}

	public void update() throws SQLException {
		chronicdisdao.update(this);
	}
	
	public String getIllcode() {
		return illcode;
	}
	public void setIllcode(String illcode) {
		this.illcode = illcode;
	}
	public String getPycode() {
		return pycode;
	}
	public void setPycode(String pycode) {
		this.pycode = pycode;
	}
	public String getIllname() {
		return illname;
	}
	public void setIllname(String illname) {
		this.illname = illname;
	}
	public String getWbcode() {
		return wbcode;
	}
	public void setWbcode(String wbcode) {
		this.wbcode = wbcode;
	}
	
	
}
